controllers.controller('MapViewCtrl', ['$scope', '$http', function($scope, $http) {
    $scope.loadCurrentEvents = function() {
        $http(jsRoutes.controllers.Application.getTagsPower()).success(function(data, status, headers, config) {
            //sababa
            $scope.currentEvents = data;
        }).error(function(data, status, headers, config) {
                alert("error fetching currentEvents")
            });

        $("#myimg").attr("src", "/image?"+new Date().getTime());
    }

    $scope.loadCurrentEvents();
}]);